/*

Copyright (c) 2009 Robert Johnston

This file is part of Boxes.

Boxes is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software  Foundation, either version 3 of the License, or (at your option) any later version.
 
Boxes is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with Boxes. If not, see http://www.gnu.org/licenses/.

*/

hbox, vbox, tabbox, tabpanels, tabpanel, listbox, deck, iframe {
	-moz-box-flex: 1;
}

#logoutOverlay {
	background-color: white;
	opacity: 0.6;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	z-index: 9998;
	display: none;
}

#logoutOverlaySpinner {
	background-color: white;
	background-image: url(/Bxs/app/img/large-spinner.gif);
	background-repeat: no-repeat;
	background-position: center;
	opacity: 0.6;
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	top: 0;
	z-index: 9999;
	display: none;
}

caption.box_caption {
	margin-bottom: -4px;
	margin-top: 6px;
}

.editBar {
	-moz-appearance: none;
	min-height: 0 !important; /* prevents icons being stretched */
	border: solid rgb(180,180,180) 1px;
	border-right-width: 0;
	border-top-width: 0;
}

.editBar[targetNode="temp-box"] {
	visibility: collapse;
}

.editBar toolbarbutton {
	-moz-appearance: none;
	-moz-user-focus: normal;
	-moz-box-pack: center;
	-moz-box-align: center;
	border-right: solid rgb(180,180,180) 1px;
	margin: 0;
	padding: 0;
	overflow: hidden;
	background: url(/Bxs/app/img/edit_buttons_grad.png);
	width: 26px;
}

.editBar toolbarbutton:focus {
	background: none;
}

.editBar toolbarbutton[disabled="true"] {
	-moz-user-focus: ignore;
}

.editBar toolbarbutton[disabled="true"] .toolbarbutton-icon {
	opacity: 0.25;
}

.editBar toolbarbutton:active {
	background-image: url(/Bxs/app/img/edit_buttons_grad_active.png);
}
.editBar toolbarbutton[disabled="true"]:active {
	background-image: url(/Bxs/app/img/edit_buttons_grad.png);
}

.editBar toolbarbutton .toolbarbutton-text {
	visibility: hidden;
}

.editBar toolbarbutton[command="newRow-command"] {
	list-style-image: url(/Bxs/app/img/edit_button_newRow.png);
}

.editBar toolbarbutton[command="deleteRow-command"] {
	list-style-image: url(/Bxs/app/img/edit_button_deleteRow.png);
}

.editBar toolbarbutton[command="edit-command"] {
	list-style-image: url(/Bxs/app/img/edit_button_edit.png);
}

.editBar toolbarbutton[command="confirm-command"] {
	list-style-image: url(/Bxs/app/img/edit_button_confirm.png);
}

.editBar toolbarbutton[command="cancel-command"] {
	list-style-image: url(/Bxs/app/img/edit_button_cancel.png);
}

.editBar toolbarbutton[label="Tools"] {
	border-right: solid rgb(160,160,160) 1px;
	list-style-image: url(/Bxs/app/img/edit_button_tools.png);
}

.hidden {
	visibility: collapse;
}

iframe {
	background-color: rgb(250,250,250);
	border: solid rgb(180,180,180) 1px;
	margin-right: 1px;
	margin-bottom: 1px;
}

iframe.editing {
	border-width: 0 0 1px 0;
}

listcell[media="image"] {
	min-height: 64px;
	background-repeat: no-repeat;
	background-position: center left;
	-moz-box-direction: normal !important;
}

listcell[media="image"] image {
	margin: 2px;
}

listcell[media="image"].listcell-label {
	visibility: collapse;
}

.mediaLoading {
	background-image: url(/Bxs/app/img/loading_16_grey.gif);
}

.mediaError {
	background-image: url(/Bxs/app/img/imageNotFound.png);
}

#loading {
	-moz-box-align: center;
	-moz-box-pack: center;
}

#loginUsernameCap,#loginPasswordCap {
	min-width: 90px;
	margin-left: 3px;
}

#tempBox {
	visibility: collapse;
}

listbox {
	margin: 0;
	border-bottom: solid rgb(180,180,180) 1px;
}

listboxbody {
	background-color: rgb(250,250,250);
}

listbox.singleRow listboxbody {
	overflow: hidden;
}

listbox[state="busy"] listboxbody {
	background-image: url(/Bxs/app/img/large-spinner.gif);
	background-repeat: no-repeat;
	background-position: center center;
}

listbox[state="busy"] listitem {
	opacity: 0;
}

listbox[disabled="true"] {
	color: rgb(180,180,180);
}

*[bxs="box"], *[bxs="collection"] {
	margin-top: 8px;
}

panel *[bxs="box"], panel *[bxs="collection"] {
	margin: 0;
}

listitem {
	border: 0;
	margin: 0;
	padding: 0;
	min-height: 22px;
	background-color: white;
}

listitem:nth-child(even) {
	background-color: rgb(240,240,240);
}

listbox:focus listitem[selected="true"] {
	background-color: rgb(61,128,223) !important;
}

listbox[state="communicating"] listcell.open {
	-moz-user-focus: ignore;
	-moz-user-select: none;
}

listitem[selected="true"], listbox[state="communicating"] listcell.open {
	background-color: rgb(210,210,210) !important;
	color: white;
}

listcell.open {
	background-color: rgb(255,255,230) !important;
	color: black;
}

listcell.open .listcell-label {
	visibility: collapse;
}

listcell.open[type="checkbox"] .listcell-check {
	visibility: collapse;
}

listcell[type="checkbox"] .listcell-label {
	visibility: collapse;
}

listcell[type="checkbox"] {
	-moz-box-flex: 0;
}

listbox[state="deleting"] listitem[selected="true"] {
	background-color: rgb(255,60,80) !important;
	color: white !important;
}

listitem[disabled="true"] {
	-moz-user-focus: ignore;
	-moz-user-select: none;
}

.menu-accel-container {
	-moz-box-flex: 0;
}

panel {
	-moz-appearance: none;
}

listcol {
	-moz-box-flex: 1;
	min-width: 40px;
}

listcol[type="datetime"] {
	min-width: 175px;
}

listcol[type="date"] {
	min-width: 100px;
}

listheader[columnType="datetime"] .listheader-label, listheader[columnType="date"] .listheader-label {
	text-align: right;
	padding-right: 6px;
}

listheader[columnType="datetime"][sortDirection] .listheader-label, listheader[columnType="date"][sortDirection] .listheader-label {
	padding-right: 12px;
}

listcell {
	border-right: 1px solid rgb(230,231,236);
}

listcell[hidden="true"] {
	display: none;
}

listcell[type="date"], listcell[type="datetime"] {
	text-align: right;
	-moz-box-pack: end;
}

listcell label {
	padding: 3px 8px 1px 8px;
}

listcell textbox, listcell .datetimepicker-input-box {
	-moz-appearance: none;
	-moz-user-focus: ignore;
	-moz-box-flex: 1;
	background-color: inherit;
	color: inherit;
	border: 0;
	padding: 3px 4px 1px 7px;
	margin: 0;
}

datepicker, timepicker {
	margin: 0 -8px 0 0;
	border: 0 none;
	padding: 0;
	height: 22px;
	min-height: 22px;
}

.datetimepicker-input-box {
	margin-right: 6px;
}

.datetimepicker-input-subbox {
	width: 1.4em;
}

.datetimepicker-year {
	width: 2.8em;
}

.datetimepicker-separator {
	margin: 0;
	padding: 0;
}

.strong {
	/* used in menulists for 'New' item */
	font-weight: bold;
}

.menu-iconic-text, .menu-text {
	font-size: 11px !important;
}

menulist * {
	-moz-box-flex: 0 !important;
}

menulist[filterType="year"] {
	min-width: 100px;
}

listcell menulist {
	border: 0;
	padding: 0;
	margin: 0;
}

listcell .menulist-label {
	padding: 0;
	margin: 0;
}

.caption-text {
	font-size: 11px;
}

listbox splitter {
	-moz-appearance: none;
	width: 10px;
	border: 0;
	opacity: 0;
}

splitter + listcol {
	border: 0;
	margin-left: -10px;
}

tabbox {
	margin: 4px 0 0 0;
	padding: 0;
}

tabpanel {
	-moz-box-orient: vertical !important;
}

tabpanels {
	-moz-appearance: none;
	padding: 14px 8px 0 8px;
	border: 0;
	border-top: solid rgb(160,160,160) 1px;
	background-image: url(/Bxs/app/img/tabbox_grad.png);
	background-repeat: repeat-x;
}

tab {
	font-size: 11px;
}

.tab-text {
	font-size: 11px;
	padding: 1px;
}

checkbox {
	margin: 1px;
}

window {
	padding: 8px;
}

/* .controlBox is used to contain filter menulists etc. */
.controlBox {
	-moz-box-flex: 0;
	-moz-box-align: center;
	margin: -6px 0 -4px 0;
}

.controlBox menulist {
	margin: 8px 8px 8px 0;
}

.controlBox caption {
	margin: 8px 3px 8px 0;
}

#userBox {
	margin-top: 8px;
}